{% extends "BillingBundle::admin_layout.html.twig" %}
    
{% macro field(field, label) %}
    <tr>
        <td class="label">
            <label id="l{{ field.key }}" for="{{ field.key }}">{{ label }}:</label>
        </td>
        <td class="field">
            {{ form_field(field) }}
        </td>
        <td class="status"></td>
        <td>
            {{ form_errors(field) }}
        </td>
    </tr>
{% endmacro %}

{% block content %}

<link rel="stylesheet" type="text/css" media="screen" href="{{ asset('bundles/billing/css/validate.css') }}" />
<script src="{{ asset('bundles/billing/js/jquery.js') }}" type="text/javascript"></script>
<script src="{{ asset('bundles/billing/js/jquery.validate.js') }}" type="text/javascript"></script>
<script src="{{ asset('bundles/billing/js/validate_add_ip.js') }}" type="text/javascript"></script>

<h4>Заказать дополнительный ip адрес:</h4>

<div id="add_box">
  <div id="add_wrap">
    <form id="add_form" method="post" action="#">
        <table>
        <tr>
           <td>
           {{ _self.field(form.count, 'Количество') }}
           </td>
        </tr>
           Стоимость одного ip: {{ tarif.getAddIpCost() }}
           {{ form_hidden(form) }}
        <tr>
            <td>
            <div class="field">
                <input name="add_order" type="submit" value="Создать"/>
            </div>
            </td>
        </tr>
        </table>
    </form>
   </div>
</div>
</body>

{% endblock %}